﻿/**
* 连接线。
*/
Ext.define('Happy.designer.Connector', {

    constructor: function (drawer, config) {
        var me = this;

        me.drawer = drawer;

        Ext.copyTo(config, me, ['startNode', 'startCycle', 'endNode', 'endCycle']);
        delete config.startNode;
        delete config.endNode;

        me.line = Ext.create(config.type, drawer, config);
    }
});